-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(vehicles): add logging if a non-shuttle vehicle has a null direction_id #854
Conversation
1d16be3
to
68aab4e
Compare
question: would it be possible to add a quick unit test for this? |
Co-authored-by: Eddie Maldonado <[email protected]>
@lemald yep, I can add one. I wasn't sure whether we wanted to test logging logic |
It's definitely not our top priority for automated testing but I personally like doing it where feasible, especially for something like this where the situation isn't regularly occurring for us to test the logging manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Asana Ticket: 🍎🐛 v3 API returning null direction_id in certain cases
Problem: As described in the linked ticket, sometimes we return vehicles with
"direction_id": null
. We aren't sure why. I spent a couple of days looking into this issue and didn't make any progress.Solution: We are adding logs for when an invalid
direction_id
is returned. Hopefully these can allow us to better ascertain what conditions lead to this happening.